<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			return;
			if (this.token) {
				this.$http.post('').then(res => {
					if (res.code == 200) {
						//获取用户信息
						this.$store.commit('saveInfo', {
							userinfo: res.data
						});
					} else {
						uni.showToast({
							title: '登录超时！',
							icon: 'none'
						});
						this.$store.commit('logout');
					}
					uni.hideLoading();
				});
			} else {
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">


	/*每个页面公共css */
	@import 'uview-ui/index.scss';
	@import './static/css/iconfont.css';
	/*每个页面公共css */
	@import 'static/css/common.scss';
</style>
